package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

import java.util.Arrays;

class Solution1054 {
    public int[] rearrangeBarcodes(int[] barcodes) {
        return ArrayUtils.rearrangeBarcodes(barcodes);
    }
}

public class leetcode1054 {
    public static void main(String[] args) {
        Solution1054 solution1054 = new Solution1054();
        int[] barcodes = {1, 1, 1, 2, 2, 2};
        int[] barcodes1 = {1, 1, 1, 1, 2, 2, 3, 3};
//        System.out.println(Arrays.toString(solution1054.rearrangeBarcodes(barcodes)));
        System.out.println(Arrays.toString(solution1054.rearrangeBarcodes(barcodes1)));
    }
}
